package com.ruoyi.gigi.course.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 课程管理对象 course
 *
 * @author gigi
 * @date 2024-01-30
 */
public class Course extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 课程名
     */
    @Excel(name = "课程名")
    private String name;

    /**
     * 课程号
     */
    @Excel(name = "课程号")
    private Long no;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String pic;

    /**
     * 班级id
     */
    @Excel(name = "班级id")
    private String classId;

    private List<Long> classesId;

    public List<Long> getClassesId() {
        return classesId;
    }

    public void setClassesId(List<Long> classesId) {
        this.classesId = classesId;
    }

    /**
     * 用户id（老师id）
     */
    @Excel(name = "用户id", readConverterExp = "老=师id")
    private Long userId;

    /**
     * 有效性（0无效 1有效）
     */
    private Integer flag;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String userName;

    /**
     * 班级名
     */
    @Excel(name = "班级名")
    private String className;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public Long getNo() {
        return no;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPic() {
        return pic;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassId() {
        return classId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getFlag() {
        return flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("no", getNo())
                .append("pic", getPic())
                .append("classId", getClassId())
                .append("userId", getUserId())
                .append("flag", getFlag())
                .append("userName", getUserName())
                .append("className", getClassName())
                .append("classesId", getClassesId())
                .toString();
    }
}
